<template>
  <div>
    <div id="he-plugin-standard" />
  </div>
</template>
 
<script>

export default {
  created() {
    window.WIDGET = {
      //这里的WIDGET，利用了和风天气插件，账号18812014126
      CONFIG: {
        layout: "2",
        width: 400,
        height: 500,
        background: "1",
        dataColor: "FFFFFF",
        key: "926dd398598249e88500a7c056535e73", //这里是我自己的key值，
      },
    };
    var script = document.createElement("script");
    script.type = "text/javascript";
    script.src =
      "https://widget.qweather.net/standard/static/js/he-standard-common.js?v=2.0";//调用接口
    document.getElementsByTagName("head")[0].appendChild(script);
  },
};
</script>
 
  <style>
</style>